<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Os1: /home/alejandro/Desarrollo eclipse/os1/Thirdparty/DBoW2/DBoW2/FeatureVector.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Os1
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">OrbSlam2 documentado y modificado</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,'Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_feature_vector_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">FeatureVector.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_feature_vector_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef __D_T_FEATURE_VECTOR__</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define __D_T_FEATURE_VECTOR__</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_bow_vector_8h.html">BowVector.h</a>&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_d_bo_w2.html">DBoW2</a> {</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_d_bo_w2_1_1_feature_vector.html">   21</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_d_bo_w2_1_1_feature_vector.html">FeatureVector</a>: </div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  <span class="keyword">public</span> std::map&lt;NodeId, std::vector&lt;unsigned int&gt; &gt;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  <a class="code" href="class_d_bo_w2_1_1_feature_vector.html#a66c069d269c8c98dcf3ae39cbc6f861b">FeatureVector</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  </div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  <a class="code" href="class_d_bo_w2_1_1_feature_vector.html#a44514a020719b7e5ac552332a9922bd9">~FeatureVector</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  </div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="class_d_bo_w2_1_1_feature_vector.html#ae9554bfcbebc85439616de08f47f2238">addFeature</a>(<a class="code" href="namespace_d_bo_w2.html#a3a0fa9c50c0df508759362d6204566f2">NodeId</a> <span class="keywordtype">id</span>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i_feature);</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="class_d_bo_w2_1_1_feature_vector.html#a34aa65c93dc5f6be269610e3f238d9b1">operator&lt;&lt;</a>(std::ostream &amp;out, <span class="keyword">const</span> <a class="code" href="class_d_bo_w2_1_1_feature_vector.html">FeatureVector</a> &amp;v);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    </div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;};</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;} <span class="comment">// namespace DBoW2</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="ttc" id="_bow_vector_8h_html"><div class="ttname"><a href="_bow_vector_8h.html">BowVector.h</a></div></div>
<div class="ttc" id="class_d_bo_w2_1_1_feature_vector_html"><div class="ttname"><a href="class_d_bo_w2_1_1_feature_vector.html">DBoW2::FeatureVector</a></div><div class="ttdoc">Vector of nodes with indexes of local features. </div><div class="ttdef"><b>Definition:</b> FeatureVector.h:21</div></div>
<div class="ttc" id="class_d_bo_w2_1_1_feature_vector_html_a66c069d269c8c98dcf3ae39cbc6f861b"><div class="ttname"><a href="class_d_bo_w2_1_1_feature_vector.html#a66c069d269c8c98dcf3ae39cbc6f861b">DBoW2::FeatureVector::FeatureVector</a></div><div class="ttdeci">FeatureVector(void)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> FeatureVector.cpp:19</div></div>
<div class="ttc" id="class_d_bo_w2_1_1_feature_vector_html_a44514a020719b7e5ac552332a9922bd9"><div class="ttname"><a href="class_d_bo_w2_1_1_feature_vector.html#a44514a020719b7e5ac552332a9922bd9">DBoW2::FeatureVector::~FeatureVector</a></div><div class="ttdeci">~FeatureVector(void)</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> FeatureVector.cpp:25</div></div>
<div class="ttc" id="class_d_bo_w2_1_1_feature_vector_html_ae9554bfcbebc85439616de08f47f2238"><div class="ttname"><a href="class_d_bo_w2_1_1_feature_vector.html#ae9554bfcbebc85439616de08f47f2238">DBoW2::FeatureVector::addFeature</a></div><div class="ttdeci">void addFeature(NodeId id, unsigned int i_feature)</div><div class="ttdoc">Adds a feature to an existing node, or adds a new node with an initial feature. </div><div class="ttdef"><b>Definition:</b> FeatureVector.cpp:31</div></div>
<div class="ttc" id="namespace_d_bo_w2_html_a3a0fa9c50c0df508759362d6204566f2"><div class="ttname"><a href="namespace_d_bo_w2.html#a3a0fa9c50c0df508759362d6204566f2">DBoW2::NodeId</a></div><div class="ttdeci">unsigned int NodeId</div><div class="ttdoc">Id of nodes in the vocabulary treee. </div><div class="ttdef"><b>Definition:</b> BowVector.h:26</div></div>
<div class="ttc" id="namespace_d_bo_w2_html"><div class="ttname"><a href="namespace_d_bo_w2.html">DBoW2</a></div><div class="ttdoc">File: BowVector.cpp Date: March 2011 Author: Dorian Galvez-Lopez Description: bag of words vector Lic...</div><div class="ttdef"><b>Definition:</b> BowVector.cpp:18</div></div>
<div class="ttc" id="class_d_bo_w2_1_1_feature_vector_html_a34aa65c93dc5f6be269610e3f238d9b1"><div class="ttname"><a href="class_d_bo_w2_1_1_feature_vector.html#a34aa65c93dc5f6be269610e3f238d9b1">DBoW2::FeatureVector::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;out, const FeatureVector &amp;v)</div><div class="ttdoc">Sends a string versions of the feature vector through the stream. </div><div class="ttdef"><b>Definition:</b> FeatureVector.cpp:49</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_08235c883c2d11e586a63e6645937db5.html">Thirdparty</a></li><li class="navelem"><a class="el" href="dir_d1a1b6b9a428c17d660585cf3877a970.html">DBoW2</a></li><li class="navelem"><a class="el" href="dir_004f071c35dfaac2458bd63a15bbc95f.html">DBoW2</a></li><li class="navelem"><a class="el" href="_feature_vector_8h.html">FeatureVector.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
